<!--
 * @Author: 张久冬
 * @Date: 2021-12-27 15:59:50
 * @
# Description:
-->
<template>
  <div class="user">
    <PageSearch
      :searchFormConfig="searchFormConfig"
      @queryBtnClick="queryBtnClick"
      @reserBtnClick="reserBtnClick"
    ></PageSearch>
    <div class="content">
      <PageContent
        :contentTableConfig="contentTableConfig"
        :pageName="pageName"
        ref="pageContentRef"
      >
      </PageContent>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { searchFormConfig } from './config/search.config'
import { contentTableConfig } from './config/content.config'
import PageSearch from '@/componments/page-search'
import PageContent from '@/componments/page-content'
import { usePageSearch } from '@/hooks/userPageSearch'

export default defineComponent({
  name: 'user',
  components: { PageSearch, PageContent },
  setup() {
    const [reserBtnClick, queryBtnClick, pageContentRef] = usePageSearch()
    const pageName = 'User'

    return {
      searchFormConfig,
      contentTableConfig,
      pageName,
      reserBtnClick,
      queryBtnClick,
      pageContentRef
    }
  }
})
</script>

<style scoped></style>
